package com.wuzhazha.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author yaolong
 * @date 2018/10/26 12:28 AM
 */
@RestController
@RequestMapping("/hi")
public class HiController {

    @GetMapping("/")
    public String hello(@RequestParam String name) {
        return "Hi, " + name + " " + new Date();
    }

}